<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en">
<head>
<title>PzzAzz Mobile Advertising - <?=$title?></title>
<meta http-equiv="content-type" content="text/html; charset=UTF-8" />
<meta http-equiv="expires" content="0" />
<meta http-equiv="Content-Language" content="en-US" />
<meta http-equiv="Window-target" content="_top" />
<meta name="Description" content="PzzAzz Mobile Billboard Advertising: <?=$title?>" />
<meta name="keywords" content="Mobile Billboard Advertising, Mobile Billboard, Advertising, Marketing, Mobile Banner, Advertising Campaign, Florida, Daytona Beach, Orlando, Mobile Billboard Advertising Daytona Beach" />
<meta name="rating" content="General" />
<meta name="author" content="Dennis T. Kaplan" />
<meta name="copyright" content="PzzAzz LLC" />
<meta name="generator" content="Code Igniter" />
<meta name="date" content="01/22/2007" />
<meta name="robots" content="all" />
<script src="http://www.google-analytics.com/urchin.js" type="text/javascript"></script>
<script type="text/javascript">_uacct = "UA-4046251-1";urchinTracker();</script>
<?php
$tz = get_cookie('TZ');
if ($tz != ''){
	date_default_timezone_set($tz);
}
$menu = $this->menu->mkmenu();
$msg = $this->msg->getMsg();

$tplcss[]  = 'pzzazz';
foreach($tplcss as $v){
    echo '<link href="/css/'.$v.'.css" rel="stylesheet" type="text/css"  media="screen" />'."\n";
} unset($tplcss, $v);


$tpljs[]  = 'pzzazz';
foreach($tpljs as $v){
    echo '<script type="text/javascript" src="/js/'.$v.'.js"></script>'."\n";
} unset($tpljs, $v);

if(isset($head)){echo $head;unset($head);}
?>
<script type="text/javascript">
<!--
function messanger()
{<?php if(isset($msg->jsOnLoad)){echo $msg->jsOnLoad;} ?>}

function onloadStart() {
    externalLinks();
    messanger();
}
window.onload = onloadStart;
-->
</script>

</head>
<body>

<div id="MessageJS">
    <div id="MessageDiv">
        <fieldset class="Message"><legend class="Message">Messanger</legend>
        <div id="MessangerCloser"><a class="Message" href="#" accesskey="M" onclick="HideShow('MessageDiv');">X</a></div>
            <?php if(isset($msg->Messanger)){echo $msg->Messanger;}else{echo 'No Messages.';}?>
        </fieldset>
    </div>
</div>
<?php if(isset($show_hide)){echo $show_hide;unset($show_hide);} ?>

<div id="HeaderBar">
        <span class="HeaderNav">
            <a class="HeaderNav" title="Messanger" href="#" accesskey="M" onclick="ShowHide('MessageDiv');">Messanger</a>
            <?php
            if($alias = $this->session->userdata('Alias')){
                echo ' | '. anchor('control_panel/person',$alias,array('title' => 'User Panel','class'=>'HeaderNav'))
                    .' | '. anchor('control_panel/control','Setting',array('title' => 'Control Panel','class'=>'HeaderNav'))
                    .' | '. anchor('ticket','Support',array('title' => 'Support','class'=>'HeaderNav'))
                    .' | '. anchor('control_panel/login/logout','Logout',array('title' => 'Logout','class'=>'HeaderNav'));  
            }else{
                echo ' | '. anchor('control_panel/login','Login',array('title' => 'Login','class'=>'HeaderNav'))
                    .' | '. anchor('control_panel/register','Register',array('title' => 'Register','class'=>'HeaderNav'));
            }
            ?>
        </span>
</div>

<div id="Navbar">
    <div id="logo"><img src="/img/Logo.gif" width="100%" alt="PzzAzz" /></div>
    <table class="Menu">
<?php
function submenu($m,$name){
    echo'<tr class="MainMenu"><td class="MainMenu">'.$name.'</td></tr>';
    foreach($m as $v){
        echo '<tr class="SubMenu"><td class="SubMenu">'.$v.'</td></tr>';
    }
}
foreach($menu as $k=>$v){
    if(is_array($v)){echo submenu($v,$k);}else{echo '<tr class="MainMenu"><td class="MainMenu">'.$v.'</td></tr>';}
}

?>
    </table>
</div>
<div id="Content">
<?php if(isset($link))echo $link; ?>
<h2><?=$title?></h2>

